package edu.ctbu.ctbujsj.service;

import edu.ctbu.ctbujsj.dao.StudentRepository;
import edu.ctbu.ctbujsj.domain.TbStudent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {
    @Autowired
    private StudentRepository studentRepository;
    public List<TbStudent>findall(){
        List<TbStudent>mylist=studentRepository.findAll();
        return  mylist;
    }
}
